home *** CD-ROM | disk | FTP | other *** search
- Path: news.his.com!news
- From: Tom Daniels <tdaniels@his.com>
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Date: Wed, 10 Apr 1996 22:45:02 -0400
- Organization: Very Little, If Any
- Message-ID: <316C722E.528A@his.com>
- References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <pnoguchi-0404962135210001@pnoguchi.his.com> <aidan-0604961847480001@meathook.intac.com> <316a2987.3677177@news.cyberport.com>
- NNTP-Posting-Host: tdaniels.his.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Warren Young Wrote:
- > Again, this is a philosophical distinction. C/C++'s function pointers
- > are low-level, true hardware pointers, not abstracted handles or some
- > such. Could you, for example, assign a raw address to the Oberon
- > sample? You can in C/C++, because they're directly analogous to the
- > underlying machine structures.
- >
-
- My question is this: If you are writing non system type programs
- (I include games in this category), why in the world would you
- ever resort to such a hack as to assign a raw address to a function
- pointer. It's that sort of crap (that is easy to do even by
- accident) that C is infamous for. As a program manager heading a
- project, I would shoot at dawn, the first programmer who pulled this
- kind of crap. If you gotta do that stuff, you've misdesigned
- your program structure somewhere.
-
- Then again, if you're writing a system kernel or something like that
- it doesn't matter quite so much, but still it leaves a terrible
- taste in my mouth.
-